<? include_once("../../../common/common_setting_unit.php"); //引入通用的设置文件?>
<? include_once("../controller/detail-add.php");
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
?>
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include ROOT_PATH_.'/controller/common/module/head.php'; ?>
    <link href="../asset/css/style.css" rel="stylesheet" type="text/css"/>
</head>

<body class="case">

<div id="topbar">   <?php include ROOT_PATH_.'/controller/common/module/topbar.php'; ?></div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/module/sidebar.php'; ?>
        </div>


<div id="content"> 




<div class="box detail-box  layui-form">

    <h1> 项目资料 </h1>

<form id="add-form" method="post" action="detail-add-function.php?nav-itemed=member" enctype="multipart/form-data" class="layui-form">



<input type="hidden" name="nid" value="<? echo $detail['nid']?>">
<fieldset class="layui-elem-field layui-field-title">
<legend> 基本信息 </legend>
</fieldset>







    <div class="left_content">

        <div class="layui-form-item"  >
            <label class="layui-form-label">项目标题</label>
            <div class="layui-input-block">
                <input type="text" name="ai_name"   autocomplete="off" class="layui-input"  value="<? echo date("Y-md-Hi")?>">
            </div>
        </div>



        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block" >
                <input type="radio" name="ai_status" value="发布" title="发布" checked>

                <input type="radio" name="ai_status" value="隐藏" title="隐藏" <? if ($detail['status'] == "隐藏") {
                    echo "checked";
                } ?>>

            </div>

        </div>




    </div>


    <div class="right_content">

        <div class="layui-col-xs6 layui-col-sm6 layui-col-md4">
            <div class="grid-demo">

                <div class="layui-form-item">
                    <label class="layui-form-label">开始日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="ai_startdate" id="date" autocomplete="off" class="layui-input"
                               value="<? echo date("Y-m-d")?>"
                               onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
                    </div>
                </div>



                <div class="layui-form-item">
                    <label class="layui-form-label">完成日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="ai_enddate" id="date" autocomplete="off" class="layui-input"
                               value="<? echo date("Y-m-d")?>"
                               onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
                    </div>
                </div>

            </div>
        </div>


    </div>





    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="ai_remark" placeholder="备注" class="layui-textarea"><? echo $detail['remark']?></textarea>
        </div>
    </div>






    <br/>













    <fieldset class="layui-elem-field layui-field-title">
        <legend> <i class="fa fa-tasks"></i> 采购项目 </legend>
    </fieldset>

<!--    <div class="left_content">-->
<!--        这边搜索-->
<!--    </div>-->
<!--    <div class="right_content">-->
<!--        --><?// include_once ("module/mod-item-list.php")?>
<!--    </div>-->

    <? include_once ("module/mod-item-list.php")?>











    <br class="clearfloat"/>

    <div class="function">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>


                    <input name="navitemed" type="hidden" value="<? echo $_REQUEST['nav-itemed'] ?>"/>
                    <input name="sys_part"  type="hidden" value="<? echo $system_part ?>"/>
                    <input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
                    <input name="sortby"    type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>
                    <input name="term_nid"  type="hidden" value="<? echo $_REQUEST['term_nid'] ?>"/>



</form>
 


 
 
        </div>
		
 
 
<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>




<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //常规用法
        laydate.render({
            elem: '#date'
        });
    });
</script>




<script src="../../../common/asset/js/show_iframe.js"></script>
<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>
</body>
</html>
